﻿<%@ Page Title="ResourceBlender" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="contentHead" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="contentMain" ContentPlaceHolderID="cntMain" Runat="Server">
    <form id="frmTranslations" runat="server">
    <asp:SqlDataSource ID="dsMain" runat="server"
                         ConnectionString="<%$ ConnectionStrings:Default %>"
                         ProviderName="<%$ ConnectionStrings:Default.ProviderName %>"
                         SelectCommand="SELECT * FROM applications"
                         >
                         </asp:SqlDataSource>
    <h1>Dashboard</h1>
    <asp:DataList ID="DataList1" runat="server">
    </asp:DataList>
    
            <asp:Repeater ID="Repeater1" runat="server">
            </asp:Repeater>
    <asp:ListView ID="lstApplications" runat="server" DataSourceID="dsMain" 
        onitemdatabound="lstApplications_ItemDataBound">
        <LayoutTemplate>
            <asp:PlaceHolder runat="server" ID="itemPlaceholder" />
        </LayoutTemplate>
        <ItemTemplate>
            <h2><%# Eval("displayname") %></h2>
            <asp:Label ID="applicationType" runat="server" 
                       Text='<%# Enum.Parse(typeof(Constants.ResourceType), Eval("type").ToString()) %>'
                       CssClass='<%# Enum.Parse(typeof(Constants.ResourceType), Eval("type").ToString()) %>'></asp:Label>
            <asp:BulletedList ID="lstLanguages" runat="server">
            </asp:BulletedList>
        </ItemTemplate>
    </asp:ListView>
    </form>
</asp:Content>

